Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-58401

Qt fails to build with clang 32bit on Mac

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.9.2
    • 5.8.0, 5.9, 5.10
    • QPA
    • None
    • OS X 10.11.6
    • macOS
    • 8f06124b70bad709b2f99789f2416529db5f153d

    Description

      qt-everywhere-opensource-src-5.8.0.tar.gz downloaded from qt.io website fails to build as -platform macx-clang-32 parameter.

      Build settings
      ./configure -platform macx-clang-32 -skip qtwebengine -skip translations -opensource -confirm-license -developer-build
      make
      
      Build log: Xcode 8.2.1 on OS X 10.11.6
      qnsview.mm:339:39: error: no viable conversion from 'NSRect' (aka '_NSRect') to 'CGRect'
              geometry = QRectF::fromCGRect([self bounds]).toRect();
                                            ^~~~~~~~~~~~~
      Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: 
            candidate constructor (the implicit copy constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'const CGRect &' for 1st argument
      struct CGRect {
             ^
      Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: 
            candidate constructor (the implicit move constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'CGRect &&' for 1st argument
      ../../../../include/QtCore/../../src/corelib/tools/qrect.h:616:37: note: passing argument to parameter 'rect' here
          static QRectF fromCGRect(CGRect rect) Q_DECL_NOTHROW Q_REQUIRED_RESULT;
                                          ^
      qnsview.mm:342:39: error: no viable conversion from 'NSRect' (aka '_NSRect') to 'CGRect'
              geometry = QRectF::fromCGRect([self frame]).toRect();
                                            ^~~~~~~~~~~~
      Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: 
            candidate constructor (the implicit copy constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'const CGRect &' for 1st argument
      struct CGRect {
             ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: 
            candidate constructor (the implicit move constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'CGRect &&' for 1st argument
      ../../../../include/QtCore/../../src/corelib/tools/qrect.h:616:37: note: passing argument to parameter 'rect' here
          static QRectF fromCGRect(CGRect rect) Q_DECL_NOTHROW Q_REQUIRED_RESULT;
                                          ^
      qnsview.mm:556:108: error: no viable conversion from 'NSRect' (aka '_NSRect') to 'CGRect'
          qCDebug(lcQpaCocoaWindow) << "[QNSView drawRect:]" << m_platformWindow->window() << QRectF::fromCGRect(dirtyRect);
                                                                                                                 ^~~~~~~~~
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: 
            candidate constructor (the implicit copy constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'const CGRect &' for 1st argument
      struct CGRect {
             ^
      /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGGeometry.h:46:8: note: 
            candidate constructor (the implicit move constructor) not viable: no known conversion from 'NSRect' (aka '_NSRect') to 'CGRect &&' for 1st argument
      ../../../../include/QtCore/../../src/corelib/tools/qrect.h:616:37: note: passing argument to parameter 'rect' here
          static QRectF fromCGRect(CGRect rect) Q_DECL_NOTHROW Q_REQUIRED_RESULT;
      

      Same build failure happens with Xcode 7.3.1 on OS X 10.11.6

      64bit with -platform macx-clang builds succesfully

      Attachments

        For Gerrit Dashboard: QTBUG-58401
        # Subject Branch Project Status CR V

        Activity

          People

            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            pavol.markovic Pavol Markovic
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes